#include<stdio.h>
#include<math.h>
main()
{
int a,b,c,sum,ones,tens,hund,thous;
printf("enter the number of four digit: ");
scanf("%d",&a);
ones=(a%10);
printf("\n The ones place number :%d",ones);
b=(a/10);
tens=(b%10);
printf("\n The tenth place number is :%d",tens);
hund=(b%10);
printf("\n The hundredth place number:%d",hund);
c=(a/1000);
printf("\n The thousand place number is:%d\n",c);

if(ones==c)
{
printf("The number is palindrome \n");
}
else
{
printf("Try again!!! Number is not palindrome\n");
}
}
